/*
  约定的全局样式文件，自动引入，也可以用 global.css
  比如用于覆盖样式
*/
@import '~antd/lib/style/themes/default.less';
@import '~react-grid-layout/css/styles.css';
@import '~react-resizable/css/styles.css';
@import '~react-contexify/dist/ReactContexify.css';
@import '~braft-editor/dist/index.css';
/* reset */
a {
  color: inherit;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
/*滚动条样式（高宽及背景）*/
::-webkit-scrollbar {
  width: 4px; /* 滚动条宽度， width：对应竖滚动条的宽度  height：对应横滚动条的高度*/
  height: 4px;
  background-color: #1d1d1d;
}
/*滑块样式*/
::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background: #666;
}
/*输入框placeholder*/
::-webkit-input-placeholder {
  color: #666 !important;
}

/* width */
.w50p {
  width: 50%;
}
.w100p {
  width: 100%;
}
.w12 {
  width: 12px;
}
.w40 {
  width: 40px;
}
.w48 {
  width: 48px;
}
.w50 {
  width: 50px;
}
.w140 {
  width: 140px;
}
.w300 {
  width: 300px;
}
.w500 {
  width: 500px;
}

/* height */
.h100p {
  height: 100%;
}
.h12 {
  height: 12px;
}
.h44 {
  height: 44px;
}
.h48 {
  height: 48px;
}
.h50 {
  height: 50px;
}
.h52 {
  height: 52px;
}
.h60 {
  height: 60px;
}

.lh22 {
  line-height: 22px;
}
.lh25 {
  line-height: 25px;
}
.lh28 {
  line-height: 28px;
}
.lh44 {
  line-height: 44px;
}

/* padding */
.px6 {
  padding-left: 6px;
  padding-right: 6px;
}
.pt8 {
  padding-top: 8px;
}
.pb8 {
  padding-bottom: 8px;
}
.px8 {
  padding-left: 8px;
  padding-right: 8px;
}
.p10 {
  padding: 10px;
}
.pl10 {
  padding-left: 10px;
}
.px10 {
  padding-left: 10px;
  padding-right: 10px;
}
.pl12 {
  padding-left: 12px;
}
.pt12 {
  padding-top: 12px;
}
.pb12 {
  padding-bottom: 12px;
}
.pl16 {
  padding-left: 16px;
}
.pt16 {
  padding-top: 16px;
}
.px16 {
  padding-left: 16px;
  padding-right: 16px;
}
.p20 {
  padding: 20px;
}
.pt20 {
  padding-top: 20px;
}
.pb20 {
  padding-bottom: 20px;
}
.pr20 {
  padding-right: 20px;
}
.pl20 {
  padding-left: 20px;
}
.px20 {
  padding-left: 20px;
  padding-right: 20px;
}
.pr24 {
  padding-right: 24px;
}
.pl40 {
  padding-left: 40px;
}

/* margin */
.m-auto {
  margin: auto;
}
.ml2 {
  margin-left: 2px;
}
.ml4 {
  margin-left: 4px;
}
.mt4 {
  margin-top: 4px;
}
.mb8 {
  margin-bottom: 8px;
}
.ml10 {
  margin-left: 10px;
}
.mt10 {
  margin-top: 10px;
}
.ml20 {
  margin-left: 20px;
}
.mb20 {
  margin-bottom: 20px;
}
.mx20 {
  margin-left: 20px;
  margin-right: 20px;
}
/* position */
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.left-0 {
  left: 0;
}
.right-0 {
  right: 0;
}
.top-0 {
  top: 0;
}
.bottom-0 {
  bottom: 0;
}
.z-1 {
  z-index: 1;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-x-hidden {
  overflow-x: hidden;
}
.overflow-y-hidden {
  overflow-y: hidden;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.oneLine {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
/* flex */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex1 {
  flex: 1;
}
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-right {
  justify-content: right;
}
.items-center {
  align-items: center;
}

/* float */
.fl {
  float: left;
}
.fr {
  float: right;
}

/* text */
.tc {
  text-align: center;
}
.tr {
  text-align: right;
}

/* font */
.bold {
  font-weight: bold;
}
.fsz13 {
  font-size: 13px;
}
.fsz14 {
  font-size: 14px;
}
.fsz18 {
  font-size: 18px;
}
.fsz24 {
  font-size: 24px;
}

/* other */
.default {
  cursor: default;
}
.pointer {
  cursor: pointer;
}
.move {
  cursor: move;
}
.hidden {
  display: none;
}

/* border, box */
.border-color-base {
  border-color: @border-color-base;
}
.bd1 {
  border: 1px solid @border-color-base;
}
.bdt1 {
  border-top: 1px solid @border-color-base;
}
.bdb1 {
  border-bottom: 1px solid @border-color-base;
}
.bdrs4 {
  border-radius: 4px;
}
.bdrs8 {
  border-radius: 8px;
}

/* bg options */
.bg-norepeat {
  background-repeat: no-repeat;
}
.bg-center {
  background-position: center;
}
.bg-cover {
  background-size: cover;
}

/* color */
.primary-color {
  color: @primary-color;
}
.text-color {
  color: @text-color;
}
.text-color-secondary {
  color: @text-color-secondary;
}
.text-color-thirdly {
  color: @text-color-thirdly;
}
.text-color-extra {
  color: @text-color-extra;
}
.icon-color-secondary {
  color: @icon-color-secondary;
}
.icon-color-thirdly {
  color: @icon-color-thirdly;
}
.text-color-hover,
.icon-color-hover {
  &:hover {
    color: @primary-color;
  }
}
.btn-secondary {
  background: @btn-background-secondary !important;
  border-color: unset !important;
  &:hover,
  &:focus {
    color: @text-color !important;
    background: @btn-background-secondary !important;
    border-color: unset !important;
  }
}
.btn-thirdly {
  background: @btn-background-thirdly !important;
  border-color: unset !important;
  &:hover,
  &:focus {
    color: @text-color !important;
    background: @btn-background-thirdly !important;
    border-color: unset !important;
  }
}
.white {
  color: #fff;
}
.black {
  color: #000;
}
.bg-white,
.background-color-white {
  background-color: white !important;
}
/* 背景-背景色 */
.bg,
.bg-component {
  background-color: @component-background;
}
/* 导航 */
.bg-nav {
  background-color: @nav-background;
}
/* 背景 */
.bg-panel {
  background-color: @panel-background;
}
/* 侧边栏 */
.bg-sider {
  background-color: @sider-background;
}

/* antd reset */
.ant-select-dropdown {
  padding: 4px !important;
  border: 1px solid @nav-background;
  background-color: #171717 !important;
}
.ant-select-item {
  color: #fff !important;
}
.ant-select-item-option-active:not(.ant-select-item-option-disabled) {
  background-color: @primary-color !important;
  border-radius: @border-radius-base;
}
.ant-form-item {
  margin-bottom: 16px;
}
.ant-form-item-label > label {
  color: @text-color-secondary !important;
}
.ant-tabs,
.ant-tabs-tab {
  font-size: @font-size-base !important;
  color: #666;
}

.ant-tabs.ant-tabs-top {
  .ant-tabs-tab + .ant-tabs-tab {
    margin-left: 20px;
  }
  > .ant-tabs-nav {
    padding-left: 16px;
    margin-bottom: 0px;
    &::before {
      border-color: @border-color-base;
    }
    .ant-tabs-ink-bar {
      background: white;
      height: 1px;
    }
  }
  .ant-tabs-tab {
    padding: 8px 0 16px 0;
    &:hover {
      color: white;
    }
  }
  .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
    color: white;
  }
}
.ant-radio-input:focus + .ant-radio-inner {
  box-shadow: none !important;
}
.ant-radio-wrapper {
  align-items: center !important;
}
